home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource4 / 221_01 / abs.c < prev    next >
Text File  |  1979-12-31  |  128b  |  6 lines

  1. /*
  2. ** abs -- returns absolute value of nbr
  3. */
  4. abs(nbr)  int nbr;
  5.   {if(nbr<0) return -nbr; else return nbr;}
  6.